package com.woniu.mapper;

import com.woniu.entity.vo.MenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author hq
 * @Date 2025/6/14$ 23:24$
 * @Description TODO
 * @Params $
 * @Return $
 **/
@Mapper
public interface CtfMenuMapper {
    /**
     * 查询菜单列表
     */
    @Select("SELECT * FROM all_menu")
    List<MenuVo> selectAllMenus();
    @Update("update all_menu set status =0 where menu_id=#{id}")
    void deleteById(Integer id);
}
